#ifndef PROJEKTDOCK_H
#define PROJEKTDOCK_H

#include <QDockWidget>
#include <QTreeView>

#include "gui/dock/projectdock/projectmodel.h"
#include "uml/umldiritem.h"
#include "uml/class/umlclassitem.h"
#include "gui/mainwindow/umlview.h"
#include "uml/projects/umlproject.h"
#include "gui/dock/projectdock/projecttreeview.h"

class ProjectDock : public QDockWidget
{
    Q_OBJECT
public:
    ProjectDock(QWidget *parent = 0);

    void setModel(ProjectModel *model);

public slots:
    void itemSelected(QModelIndex index);

protected:
    ProjectTreeView _treeView;
    ProjectModel *_model;
    UmlDirItem *_rootDir;
    UmlDirItem *_currentSelectedDir;

    void initTreeView();

signals:
    void drawPackage(UmlDirItem *dir);

};

#endif // PROJEKTDOCK_H
